package com.example.demo.entity;

import lombok.Data;
import java.time.LocalDateTime;

@Data
public class Teacher {
    // 对应 teachers 表中的 teacher_id
    private String teacherId;

    // 对应 teachers 表中的 teacher_name
    private String teacherName;

    public String getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(String teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    // 对应 teachers 表中的 password (注意：实际应用中必须加密)
    private String password;

    // 对应 created_at
    private LocalDateTime createdAt;

    // 对应 updated_at
    private LocalDateTime updatedAt;
    // 注意：MyBatis 会自动将 snake_case (teacher_id) 映射到 camelCase (teacherId)，
    // 前提是在 application.properties 中配置了 map-underscore-to-camel-case
}
